home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / Make / source / amiga / SMakefile < prev   
Encoding:
Makefile  |  1997-09-25  |  8.5 KB  |  287 lines

  1. # NOTE: If you have no `make' program at all to process this makefile, run
  2. # `build.sh' instead.
  3. #
  4. # Copyright (C) 1988, 89, 91, 92, 93, 94, 1995 Free Software Foundation, Inc.
  5. # This file is part of GNU Make.
  6. #
  7. # GNU Make is free software; you can redistribute it and/or modify
  8. # it under the terms of the GNU General Public License as published by
  9. # the Free Software Foundation; either version 2, or (at your option)
  10. # any later version.
  11. #
  12. # GNU Make is distributed in the hope that it will be useful,
  13. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  15. # GNU General Public License for more details.
  16. #
  17. # You should have received a copy of the GNU General Public License
  18. # along with GNU Make; see the file COPYING.  If not, write to
  19. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  20.  
  21. #
  22. #       Makefile for GNU Make
  23. #
  24.  
  25. # Ultrix 2.2 make doesn't expand the value of VPATH.
  26. VPATH = /make-3.76.1/
  27. # This must repeat the value, because configure will remove `VPATH = .'.
  28. srcdir = /make-3.76.1/
  29.  
  30. CC = sc
  31. RM = delete
  32. MAKE = smake
  33. MAKEINFO = ade:bin/makeinfo
  34.  
  35. CFLAGS =
  36. CPPFLAGS =
  37. LDFLAGS =
  38.  
  39. # Define these for your system as follows:
  40. #       -DNO_ARCHIVES           To disable `ar' archive support.
  41. #       -DNO_FLOAT              To avoid using floating-point numbers.
  42. #       -DENUM_BITFIELDS        If the compiler isn't GCC but groks enum foo:2.
  43. #                               Some compilers apparently accept this
  44. #                               without complaint but produce losing code,
  45. #                               so beware.
  46. # NeXT 1.0a uses an old version of GCC, which required -D__inline=inline.
  47. # See also `config.h'.
  48. defines =
  49.  
  50. # Which flavor of remote job execution support to use.
  51. # The code is found in `remote-$(REMOTE).c'.
  52. REMOTE = stub
  53.  
  54. # If you are using the GNU C library, or have the GNU getopt functions in
  55. # your C library, you can comment these out.
  56. GETOPT = getopt.o getopt1.o
  57. GETOPT_SRC = $(srcdir)getopt.c $(srcdir)getopt1.c $(srcdir)getopt.h
  58.  
  59. # If you are using the GNU C library, or have the GNU glob functions in
  60. # your C library, you can comment this out.  GNU make uses special hooks
  61. # into the glob functions to be more efficient (by using make's directory
  62. # cache for globbing), so you must use the GNU functions even if your
  63. # system's C library has the 1003.2 glob functions already.  Also, the glob
  64. # functions in the AIX and HPUX C libraries are said to be buggy.
  65. GLOB = Lib glob/glob.lib
  66.  
  67. # If your system doesn't have alloca, or the one provided is bad, define this.
  68. ALLOCA = alloca.o
  69. ALLOCA_SRC = $(srcdir)alloca.c
  70.  
  71. # If your system needs extra libraries loaded in, define them here.
  72. # System V probably need -lPW for alloca.  HP-UX 7.0's alloca in
  73. # libPW.a is broken on HP9000s300 and HP9000s400 machines.  Use
  74. # alloca.c instead on those machines.
  75. LOADLIBES = amiga/wbpath/wbpath.o
  76.  
  77. # Any extra object files your system needs.
  78. extras = amiga.o
  79.  
  80. # Common prefix for machine-independent installed files.
  81. prefix =
  82. # Common prefix for machine-dependent installed files.
  83. exec_prefix =
  84.  
  85. # Directory to install `make' in.
  86. bindir = sc:c
  87. # Directory to find libraries in for `-lXXX'.
  88. libdir = lib:
  89. # Directory to search by default for included makefiles.
  90. includedir = include:
  91. # Directory to install the Info files in.
  92. infodir = doc:
  93. # Directory to install the man page in.
  94. mandir = t:
  95. # Number to put on the man page filename.
  96. manext = 1
  97. # Prefix to put on installed `make' binary file name.
  98. binprefix =
  99. # Prefix to put on installed `make' man page file name.
  100. manprefix = $(binprefix)
  101.  
  102. # Whether or not make needs to be installed setgid.
  103. # The value should be either `true' or `false'.
  104. # On many systems, the getloadavg function (used to implement the `-l'
  105. # switch) will not work unless make is installed setgid kmem.
  106. install_setgid = false
  107. # Install make setgid to this group so it can read /dev/kmem.
  108. group = sys
  109.  
  110. # Program to install `make'.
  111. INSTALL_PROGRAM = copy
  112. # Program to install the man page.
  113. INSTALL_DATA = copy
  114. # Generic install program.
  115. INSTALL = copy
  116.  
  117. # Program to format Texinfo source into Info files.
  118. MAKEINFO = makeinfo
  119. # Program to format Texinfo source into DVI files.
  120. TEXI2DVI = texi2dvi
  121.  
  122. # Programs to make tags files.
  123. ETAGS = etags -w
  124. CTAGS = ctags -w
  125.  
  126. objs = commands.o job.o dir.o file.o misc.o main.o read.o remake.o   \
  127.        rule.o implicit.o default.o variable.o expand.o function.o    \
  128.        vpath.o version.o ar.o arscan.o signame.o remote-$(REMOTE).o  \
  129.        $(GLOB) $(GETOPT) $(ALLOCA) $(extras)
  130. srcs = $(srcdir)commands.c $(srcdir)job.c $(srcdir)dir.c             \
  131.        $(srcdir)file.c $(srcdir)getloadavg.c $(srcdir)misc.c         \
  132.        $(srcdir)main.c $(srcdir)read.c $(srcdir)remake.c             \
  133.        $(srcdir)rule.c $(srcdir)implicit.c $(srcdir)default.c        \
  134.        $(srcdir)variable.c $(srcdir)expand.c $(srcdir)function.c     \
  135.        $(srcdir)vpath.c $(srcdir)version.c                           \
  136.        $(srcdir)remote-$(REMOTE).c                                   \
  137.        $(srcdir)ar.c $(srcdir)arscan.c                               \
  138.        $(srcdir)signame.c $(srcdir)signame.h $(GETOPT_SRC)           \
  139.        $(srcdir)commands.h $(srcdir)dep.h $(srcdir)file.h            \
  140.        $(srcdir)job.h $(srcdir)make.h $(srcdir)rule.h                \
  141.        $(srcdir)variable.h $(ALLOCA_SRC) $(srcdir)config.h.in
  142.  
  143.  
  144. .SUFFIXES:
  145. .SUFFIXES: .o .c .h .ps .dvi .info .texinfo
  146.  
  147. all: make make.guide
  148. info: make.info
  149. dvi: make.dvi
  150. # Some makes apparently use .PHONY as the default goal if it is before `all'.
  151. .PHONY: all check info dvi
  152.  
  153. make.guide:
  154.     $(MAKEINFO) --amiga-40 -I$(srcdir) make.texinfo -o make.guide
  155.  
  156. make.info: make.texinfo
  157.     $(MAKEINFO) -I$(srcdir) $(srcdir)make.texinfo -o make.info
  158.  
  159. make.dvi: make.texinfo
  160.     $(TEXI2DVI) $(srcdir)make.texinfo
  161.  
  162. make.ps: make.dvi
  163.     dvi2ps make.dvi > make.ps
  164.  
  165. make: $(objs) glob/glob.lib
  166.     $(CC) Link $(LDFLAGS) $(objs) $(LOADLIBES) NOICON To make.new
  167.     -delete quiet make
  168.     rename make.new make
  169.  
  170. # -I. is needed to find config.h in the build directory.
  171. .c.o:
  172.     $(CC) $(defines) IDir "" IDir $(srcdir)glob \
  173.           $(CPPFLAGS) $(CFLAGS) $< $(OUTPUT_OPTION)
  174.  
  175. amiga.c: amiga/amiga.c
  176.     @delete amiga.c quiet
  177.     makelink from amiga.c to amiga/amiga.c hard force
  178.  
  179. glob/glob.lib:
  180.     execute <<
  181.         cd glob
  182.         smake
  183. <
  184.  
  185. tagsrcs = $(srcs) $(srcdir)remote-*.c
  186. TAGS: $(tagsrcs)
  187.     $(ETAGS) $(tagsrcs)
  188. tags: $(tagsrcs)
  189.     $(CTAGS) $(tagsrcs)
  190.  
  191. .PHONY: install installdirs
  192. install:
  193.     copy make sc:c
  194.  
  195. loadavg: loadavg.c config.h
  196.     $(CC) $(defines) -DTEST -I. -I$(srcdir) $(CFLAGS) $(LDFLAGS) \
  197.           loadavg.c $(LOADLIBES) -o $@
  198.  
  199. clean: glob-clean
  200.     -$(RM) -f make loadavg *.o core make.dvi
  201.     -execute $(srcdir)amiga/configure.SAS UNINSTALL
  202.  
  203. distclean: clean glob-realclean
  204.     -$(RM) Makefile config.h config.status build.sh
  205.     -$(RM) config.log config.cache
  206.     -$(RM) TAGS tags
  207.     -$(RM) make.?? make.??s make.log make.toc make.*aux
  208.     -$(RM) loadavg.c
  209.  
  210. realclean: distclean
  211.     -$(RM) make.info*
  212.  
  213. mostlyclean: clean
  214.  
  215. .PHONY: glob-clean glob-realclean
  216.  
  217. glob-clean glob-realclean:
  218.     execute <<
  219.     cd glob
  220.     smake $@
  221. <
  222.  
  223. # The automatically generated dependencies below may omit config.h
  224. # because it is included with ``#include <config.h>'' rather than
  225. # ``#include "config.h"''.  So we add the explicit dependency to make sure.
  226. $(objs): config.h
  227.  
  228. # Automatically generated dependencies will be put at the end of the file.
  229.  
  230. # Automatically generated dependencies.
  231. commands.o: commands.c make.h dep.h filedef.h variable.h job.h \
  232.  commands.h
  233.  
  234. job.o: job.c make.h job.h filedef.h commands.h variable.h
  235.  
  236. dir.o: dir.c make.h
  237.  
  238. file.o: file.c make.h dep.h filedef.h job.h commands.h variable.h
  239.  
  240. misc.o: misc.c make.h dep.h
  241.  
  242. main.o: main.c make.h dep.h filedef.h variable.h job.h commands.h \
  243.  getopt.h
  244.  
  245. read.o: read.c make.h dep.h filedef.h job.h commands.h variable.h \
  246.  glob/glob.h
  247.  
  248. remake.o: remake.c make.h filedef.h job.h commands.h dep.h
  249.  
  250. rule.o: rule.c make.h dep.h filedef.h job.h commands.h variable.h \
  251.  rule.h
  252.  
  253. implicit.o: implicit.c make.h rule.h dep.h filedef.h
  254.  
  255. default.o: default.c make.h rule.h dep.h filedef.h job.h commands.h \
  256.  variable.h
  257.  
  258. variable.o: variable.c make.h dep.h filedef.h job.h commands.h \
  259.  variable.h
  260.  
  261. expand.o: expand.c make.h filedef.h job.h commands.h variable.h
  262.  
  263. function.o: function.c make.h filedef.h variable.h dep.h job.h \
  264.  commands.h amiga.h
  265.  
  266. vpath.o: vpath.c make.h filedef.h variable.h
  267.  
  268. version.o: version.c
  269.  
  270. ar.o: ar.c make.h filedef.h dep.h
  271.  
  272. arscan.o: arscan.c make.h
  273.  
  274. signame.o: signame.c signame.h
  275.  
  276. remote-stub.o: remote-stub.c make.h filedef.h job.h commands.h
  277.  
  278. getopt.o: getopt.c
  279.  
  280. getopt1.o : getopt1.c getopt.h
  281.  
  282. getloadavg.o: getloadavg.c
  283.  
  284. amiga.o: amiga.c make.h variable.h amiga.h
  285.  
  286.  
  287.